package cn.ylhx.venue.proposeSite.controller;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.ylhx.venue.background.entity.Background;
import cn.ylhx.venue.proposeSite.service.ProposeSiteService;
import cn.ylhx.venue.site.entity.Site_Message;



@Controller
@RequestMapping("/mobile")
public class ProposeSiteController {
	@Resource
	private ProposeSiteService proposeSiteservice;
	@RequestMapping("/searchSite_list")
	public String ProposeSite(HttpServletRequest request,Integer id){
		Map<String,Object> map=proposeSiteservice.findSiteById(id);
		request.setAttribute("map", map);
		return "proposeSite/searchSite_list";
		
	}
	@RequestMapping("/proposeSiteDetail")
	public String proposeSiteDetail(HttpServletRequest request,String ProDate,Integer id){
		
		Map<String,Object> map=proposeSiteservice.findSiteByDate(id, ProDate);
		request.setAttribute("map", map);
		return "proposeSite/proposeSessionDetail" ;
		
	}
	@RequestMapping("/mapView")
	public String mapView(){
		return "map/map";
		
	}
	
	
	
}
